package com.zzyl.controller;

import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.dto.DeviceDataPageReqDto;
import com.zzyl.dto.DevicePageQueryDto;
import com.zzyl.dto.DeviceServiceDataPageQueryDto;
import com.zzyl.service.DeviceDataService;
import com.zzyl.vo.DeviceDataVo;
import com.zzyl.vo.DeviceVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yangeit
 * @date 2024年05月25日 16:07
 * @Description
 */
@Slf4j
@Api(tags = "管理端-设备数据管理")
@RestController
@RequestMapping("/device-data")
public class DeviceDataController {


    @Autowired
    DeviceDataService deviceDataService;


    @ApiOperation(value = "获取设备数据分页结果", notes = "获取设备数据分页结果")
    @GetMapping("/get-page")
    public ResponseResult<PageResponse<DeviceDataVo>> page(DeviceDataPageReqDto deviceDataPageReqDto) {
        PageResponse<DeviceDataVo> pageResponse = deviceDataService.page(deviceDataPageReqDto);
        return ResponseResult.success(pageResponse);
    }





}
